export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  searchBtn: false,
  columnBtn: false,
  refreshBtn: false,
  labelWidth: 120,
  column: [
    //  {
    //   label: 'ID',
    //   prop: 'id',
    //   editDisabled: true,
    //   editVisdiplay: false,
    //   addVisdiplay: false
    // },
    {
      label: '广告位置',
      prop: 'positionName',
      editVisdiplay: false,
      addVisdiplay: false
    },
    {
      label: '广告名称',
      prop: 'name',
      span: 20,
      rules: [{
        required: true,
        message: '请输入广告名称'
      },
        {
          min: 3,
          max: 20,
          message: '长度在 3 到 20 个字符',
          trigger: 'blur'
        }]
    },
    {
      label: '广告位置',
      prop: 'positionId',
      span: 20,
      formsolt: true,
      solt: true,
      overHidden: true,
      hide: true,
      rules: [{
        required: true,
        message: '请选择广告位置',
        trigger: 'blur'
      }]
    },
    {
      label: '广告类型',
      prop: 'adType',
      span: 24,
      type: 'radio',
      dicData: [{
        label: '服务类型',
        value: 1
      }, {
        label: '优惠券',
        value: 2
      }],
      valueDefault: 1
    },
    {
      label: '跳转类目',
      prop: 'val',
      span: 20,
      formsolt: true,
      solt: true,
      overHidden: true,
      hide: true,
    },
    {
      label: '广告图片',
      prop: 'adImage',
      span: 24,
      formsolt: true,
      solt: true,
      overHidden: true,
      hidden: true,
      hide: true
    },
    {
      label: '排序',
      prop: 'sort',
      type: 'number',
      rules: [{
        required: true,
        message: '请输入排序',
        trigger: 'blur'
      }]
    }
  ]
}
